<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title th:text="${sysName}"></title>
    <link rel="stylesheet" href="assets/layui/css/layui.css" th:href="@{/assets/layui/css/layui.css}"  media="all">
    <link rel="stylesheet" type="text/css" href="assets/font-awesome-4.7.0/css/font-awesome.min.css"
          th:href="@{/assets/font-awesome-4.7.0/css/font-awesome.min.css}" >
    <link rel="stylesheet" href="css/app.css" th:href="@{/css/app.css}"   media="all">
    <link rel="stylesheet" href="css/themes/default.css" th:href="@{/css/themes/default.css}" media="all" id="skin" kit-skin />
</head>
                                    
<body class="kit-theme">
<div class="layui-layout layui-layout-admin kit-layout-admin">
    <div class="layui-header">
        <div class="layui-logo" th:text="${sysName}">后台管理系统</div>
        <div class="layui-logo kit-logo-mobile">Admin</div>
        <ul id="top_menu" class="layui-nav layui-layout-left kit-nav kit-one-level">
            <!--<li class="layui-nav-item"><a href="javascript:;">系统管理</a></li>-->
        </ul>
        <ul class="layui-nav layui-layout-right kit-nav">
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <i class="layui-icon">&#xe63f;</i> 皮肤
                </a>
                <dl class="layui-nav-child skin">
                    <dd><a href="javascript:;" data-skin="default" style="color:#393D49;"><i class="layui-icon">&#xe658;</i> 默认</a></dd>
                    <dd><a href="javascript:;" data-skin="orange" style="color:#ff6700;"><i class="layui-icon">&#xe658;</i> 橘子橙</a></dd>
                    <dd><a href="javascript:;" data-skin="green" style="color:#00a65a;"><i class="layui-icon">&#xe658;</i> 原谅绿</a></dd>
                    <dd><a href="javascript:;" data-skin="blue.1" style="color:#00c0ef;"><i class="layui-icon">&#xe658;</i> 天空蓝</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <img src="images/0.jpg" th:src="${curUser.pic}" class="layui-nav-img" th:text="${curUser.userName}">
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="javascript:;" kit-target data-options="{url:'userInfo',icon:'&#xe658;',title:'基本资料',id:'999'}" id="showUserInfo"><span>基本资料</span></a></dd>
                    <dd><a href="modifyPassword" >密码修改</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item"><a href="login"><i class="fa fa-sign-out" aria-hidden="true"></i> 注销</a>
            </li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black kit-side">
        <div class="layui-side-scroll">
            <div class="kit-side-fold"><i class="fa fa-navicon" aria-hidden="true"></i></div>
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree" lay-filter="kitNavbar" kit-navbar>
            </ul>
        </div>
    </div>
        <div class="layui-body" id="container">
        <!-- 内容主体区域 -->
        <div style="padding: 15px;"><i class="layui-icon layui-anim layui-anim-rotate layui-anim-loop">&#xe63e;</i> 请稍等...</div>
    </div>

    <div class="layui-footer">
        <!-- 底部固定区域 -->
        Copyright © 1999-2018 亿阳信通 版权所有
        <a href="">boco.com.cn</a>
    </div>
</div>
<script src="assets/layui/layui.js" th:src="@{/assets/layui/layui.js}"></script>
<script>
    var message;
    layui.config({
        base: 'js/'
    })
        .use(['app', 'message','common'], function () {
            var app = layui.app,
                common=layui.common,
                $ = layui.jquery;
            message = layui.message;

            //主入口
            app.set({
                type: 'iframe'
            }).init();

            //操作
            $('#showUserInfo').on('click', function () {
                common.layer_show('用户详情',"userInfo");
            });

            $('dl.skin > dd').on('click', function() {
                var $that = $(this);
                var skin = $that.children('a').data('skin');
                switchSkin(skin);
            });

            var setSkin = function(value) {
                    layui.data('kit_skin', {
                        key: 'skin',
                        value: value
                    });
                },
                getSkinName = function() {
                    return layui.data('kit_skin').skin;
                },
                switchSkin = function(value) {
                    var _target = $('link[kit-skin]')[0];
                    _target.href = _target.href.substring(0, _target.href.lastIndexOf('/') + 1) + value + _target.href.substring(_target.href.lastIndexOf('.'));
                    setSkin(value);
                },
                initSkin = function() {
                    var skin = getSkinName();
                    switchSkin(skin === undefined ? 'default' : skin);
                }();
        });
</script>
</body>

</html>